<%@ page contentType="text/html" language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<jsp:include page="../include/_dwz_form_head.jsp" />
<style type="text/css">
ul.rightTools {
	float: right;
	display: block;
}

ul.rightTools li {
	float: left;
	display: block;
	margin-left: 5px
}
</style>
<div class="tabs">
	<div class="tabsHeader">
		<div class="tabsHeaderContent">
			<ul>
				<li><a href="javascript:;"><span>销售线索</span> </a>
				</li>
			</ul>
		</div>
	</div>
	<div class="tabsContent">
		<div>
			<div class="pageHeader">
				<form rel="pagerForm" onsubmit="return navTabSearch(this);"
					action="costomer/SellclueList" method="post">
					<div class="searchBar">
						<table class="searchContent">
							<tr>
								<td>客户名称：<input type="text" id="customername"
									name="b_T_Ufp_SellClue.customername"
									value="${b_T_Ufp_SellClue.customername}" /></td>
							</tr>
						</table>
						<div class="subBar">
							<ul>
								<li>
									<div class="buttonActive">
										<div class="buttonContent">
											<button type="submit">搜索</button>
										</div>
									</div></li>
							</ul>
						</div>
					</div>
				</form>
			</div>
			<div class="panelBar">
				<ul class="toolBar">
					<li><a class="add" href="costomer/SellclueDetail"
						target="navTab" rel="SellclueDetail"><span>添加</span> </a></li>
					<li><a title="确实要删除这些记录吗?" target="selectedTodo"
						rel="checkIds" href="costomer/SellclueDel" class="delete"><span>删除</span>
					</a></li>
					<li><a title="是否确认销售成功?" target="selectedTodo"
						rel="checkIds" href="costomer/saleSuccess" class="delete"><span>销售成功</span>
					</a></li>
					<li class="line">line</li>
				</ul>
			</div>
			<table class="table" width="1150" layoutH="156">
				<thead>
					<tr>
						<th width="22"><input type="checkbox" name="checkIds"
							group="checkIds" class="checkboxCtrl"></th>
						<th width="20">序号</th>
						<th width="100" orderField="customername"
							<c:if test="${(pager.orderField)== 'customername' }">class="${pager.orderDirection}"</c:if>>
							客户名称</th>
						<th width="100" orderField="demandproduct"
							<c:if test="${(pager.orderField)== 'demandproduct' }">class="${pager.orderDirection}"</c:if>>
							需求产品</th>

						<th width="50" orderField="expectedamount"
							<c:if test="${(pager.orderField)== 'expectedamount' }">class="${pager.orderDirection}"</c:if>>
							预计金额</th>
						<th width="170" orderField="description"
							<c:if test="${(pager.orderField)== 'description' }">class="${pager.orderDirection}"</c:if>>
							描述</th>
						<th width="40" orderField="sellcluelevel" <c:if test="${(pager.orderField)== 'sellcluelevel' }">class="${pager.orderDirection}"</c:if>>
							线索分级</th>
						<th width="60" orderField="status" <c:if test="${(pager.orderField)== 'status' }">class="${pager.orderDirection}"</c:if>>销售状态</th>
						<th width="40" orderField="create_user" <c:if test="${(pager.orderField)== 'create_user' }">class="${pager.orderDirection}"</c:if>>发现人</th>
						<th width="60">操作</th>
					</tr>
				</thead>
				<tbody>

					<c:forEach items="${pager.pageRecords}" var="b_T_Ufp_SellClue"
						varStatus="s">
						<tr target="sid_user" rel="1">
							<input type="hidden" name="uuid" id="uuid"
								value="${b_T_Ufp_SellClue.uuid}" />
							<td><input name="checkIds" value="${b_T_Ufp_SellClue.uuid}"
								type="checkbox"></td>
							<td>${s.count +pager.pageSize*(pager.currentPage-1)}</td>
							<td title="${b_T_Ufp_SellClue.customername}"><a
								title="查看跟单记录" target="navTab"
								href="costomer/SellfollowList?b_T_Ufp_SellFollow.sellclueId=${b_T_Ufp_SellClue.uuid}"><font
									color="blue">${b_T_Ufp_SellClue.customername}</font>
							</a></td>
							<td>${b_T_Ufp_SellClue.demandproduct}</td>
							<td>${b_T_Ufp_SellClue.expectedamount}</td>
							<td>${b_T_Ufp_SellClue.description}</td>
							<td>${b_T_Ufp_SellClue.sellcluelevel}</td>
							
							<td>
							<c:if test="${b_T_Ufp_SellClue.status == '1'}">销售成功</c:if>
							<c:if test="${b_T_Ufp_SellClue.status != '1'}">未销售</c:if>
							</td>
							
							
							
							<td>${b_T_Ufp_SellClue.createUser}</td>
							<td><a title="删除" target="ajaxTodo"
								href="costomer/SellclueDel?checkIds=${b_T_Ufp_SellClue.uuid}"
								class="btnDel">删除</a> <a title="编辑" target="navTab"
								href="costomer/SellclueDetail?b_T_Ufp_SellClue.uuid=${b_T_Ufp_SellClue.uuid }"
								rel="editMsg" class="btnEdit">编辑</a> <a title="新增跟单记录"
								target="navTab"
								href="costomer/SellfollowDetail?b_T_Ufp_SellFollow.sellclueId=${b_T_Ufp_SellClue.uuid}&customerid=${b_T_Ufp_SellClue.customerid}"
								rel="editMsg" class="btnAdd">新增跟单记录</a>
							<%--  <a title="商机管理"
									target="navTab" class="btnLook"
									href="costomer/SellfollowList?b_T_Ufp_SellFollow.sellclueId=${b_T_Ufp_SellClue.uuid}"
									rel="SellFollowList" /> --%> <%-- <a title="查看跟单记录" class="btnLook" href="costomer/SellfollowList?b_T_Ufp_SellFollow.sellclueId=${b_T_Ufp_SellClue.uuid}" lookupGroup="b_T_Ufp_SellClue">查看跟单记录</a>	 --%>
								<%-- <a title="查看跟单记录"   href="costomer/SellclueList?b_T_Ufp_SellFollow.sellclueId=${b_T_Ufp_SellClue.uuid }" id="ss"   class="btnLook" onClick="submits();">查看跟单记录</a> --%>
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
			<div class="panelBar">
				<jsp:include page="../include/_dwz_form_bottom.jsp" />
			</div>
		</div>
	</div>
</div>